﻿@using CoreData
@model List<Album>
<div class="main-content">
    <div class="module-head">
        <div class="view-more-block">
            <a href="@Url.Action("Index", "Album")" target="_blank">Xem thêm »</a>
        </div>
        <h4>
            Album ảnh</h4>
    </div>
    <div class="col-fluit">
        <div class="module album">
            <ul class="owl-list-album">
                @if (Model != null && Model.Count != 0)
                {
                    foreach (var item in Model)
                    {
                    <li class="album-item">
                        <div class="inner-item">
                            <a href="@Url.Action("Detail", "Album", new { id = item.ID })" target="_blank">
                                <img src="/Media/Album/@item.Image" alt="@item.Image" />
                            </a>
                            <div class="album-description">
                                <p>
                                    @item.Name</p>
                            </div>
                        </div>
                    </li>
                    }
                }
            </ul>
        </div>
    </div>
</div>
<!--.main-content-->
